package com.cqut.util;

import com.cqut.VO.result.ResultVO;

/**
 * @author:fyl
 * @date 2021/6/15 19:21
 * @Modified By:
 * @Modified Date:
 * @Description:
 */
public class ResultVOUtil {
    public static ResultVO success(Object data) {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(200);
        resultVO.setMsgStr("成功");
        resultVO.setData(data);
        return resultVO;
    }

    public static ResultVO fail() {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(-1);
        resultVO.setMsgStr("失败");
        return resultVO;
    }
}
